Skip to content

Conversation

HerbertHe
Copy link

@HerbertHe HerbertHe commented Sep 20, 2025

Description

The toPlainText() method of document is not work correctly for the custom embed builders, then I have read the source code. And I found that the alternative way is to use getPlainText method and pass the whole document range as params to meet the same effect as toPlainText method.

But, I got the warning when I set the last param includeEmbeds's value as true. So, the PR is to fix the warning caused by the decorator @internal.

Related Issues

image

Type of Change

  • Feature: New functionality without breaking existing features.
  • 🛠️ Bug fix: Resolves an issue without altering current behavior.
  • 🧹 Refactor: Code reorganization, no behavior change.
  • Breaking: Alters existing functionality and requires updates.
  • 🧪 Tests: New or modified tests
  • 📝 Documentation: Updates or additions to documentation.
  • 🗑️ Chore: Routine tasks, or maintenance.
  • Build configuration change: Build/configuration changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant